package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author adrian
 * @since 2023-08-28
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Role对象", description = "部门表")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("上级角色ID，为null代表顶级")
    private Long parentId;

    @ApiModelProperty("角色KEY")
    private String name;

    @ApiModelProperty("角色名称")
    private String chineseName;

    @ApiModelProperty("权限")
    private String permissions;

    @ApiModelProperty("菜单")
    private String menu;

    @ApiModelProperty("创建者")
    private String guardName;

    @ApiModelProperty("创建时间")
    private Timestamp createdAt;

    @ApiModelProperty("更新时间")
    private Timestamp updatedAt;
}
